package day02;
//2024.8.1
public class DayHomeWork02 {
    public static void main(String[] args) {
        System.out.println("~~~~~~practice1~~~~~");
        int a;
        int b,d,c;
        int a1=1,b1=1;
        int c1,d1;
        c1=1;
        d1=1;
        int q;
        q=3;
        int g=5;
        int h=g+10;
        System.out.println(h);
        g+=10;
        System.out.println(g);
        int ee,_e,$ee1,a1_$;
//        int 1a; 错误变量名，命名不能以数字开头
//        int class; 错误命名，命名变量为Java关键字
        System.out.println("~~~~~~~~practice2~~~~~~");
        int aa=8,bb=3;
        System.out.println(aa/bb);
        int cc=2000000000,dd=2000000000;
        System.out.println(cc+dd);//-294967296溢出结果
        System.out.println("~~~~~~~~practice3~~~~~~");
        long a3=100000000000000L,b3=190909090090909L;
        int c3=1000000000,d3=2000000000;
        long k=1000000000L*4+199999;
        System.out.println(k);
        System.out.println("~~~~~~~~practice4~~~~~~");
        double a4=1.1,b4=2.0;
        float c4 = 3.14F;
        System.out.println(b4-a4);//0.8999999999999999舍入误差
        System.out.println("~~~~~~~~practice5~~~~~~");
        boolean a5 = true,b5=false;
        System.out.println(a5);
        System.out.println(b5);
        System.out.println("~~~~~~~~practice6~~~~~~");
        char a6=' ',b6='\\',c6='你',d6='a',e6='\'';
        System.out.println(a6);
        System.out.println(b6);
        System.out.println(c6);
        System.out.println(d6);
        System.out.println(e6);
        System.out.println("~~~~~~~~practice7~~~~~~");
        int a7=5;
        long b7=a7+10;
        double c7=20.0;
        int d7=(int)c7+30;
        System.out.println(b7);
        System.out.println(d7);
        long e7 = 1000000000000000L;
        int f7 = (int)e7;
        System.out.println(f7);
        double g7 = 3.14159265358979323846264338;
        float h7 = (float) g7;
        int i7 = (int)g7;
        System.out.println(h7);
        System.out.println(i7);
        System.out.println("~~~~~~~~practice8~~~~~~");
        byte a8 = 11,b8 = 15;
        byte c8 = (byte) (a8+b8);
        System.out.println(c8);

    }
}
